#include<stdio.h>
#include<stdlib.h>
#include "dominion.h"


void testcardIsGardens(){

	struct gameState* state;

	state=newGame();

	int currentPlayer=1;
	int card=gardens;
	int i=1;
	int handPos=3;
	state->handCount[currentPlayer]=3;
	//printf("Handcount:%d\n",state->handCount[currentPlayer]);

	if(cardIsGardens(card,i,currentPlayer,handPos,state) && state->handCount[currentPlayer]==3){
		printf("cardIsGardens(): PASS when card is gardens \n");
	}
	else{

		printf("cardIsGardens(): FAIL when card is gardens.\n");
	}
	//printf("Handcount:%d\n",state->handCount[currentPlayer]);

	state->handCount[currentPlayer]=3;
	card=feast;

	if(!cardIsGardens(card,i,currentPlayer,handPos,state) && state->handCount[currentPlayer]==3){
		printf("cardIsGardens(): PASS when card is feast \n");
	}
	else{

		printf("cardIsGardens(): FAIL when card is feast.\n");
	}
	//printf("Handcount:%d\n",state->handCount[currentPlayer]);


}


int main(int argc, char *argv[])
{

	testcardIsGardens();
    return 0;
}



